package com.hoshiicloud.saleorder.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author:campchen
 * @Date:Created in 上午 10:47 2019/8/22
 * @PACKAGENAME com.hoshiicloud.saleorder.entity
 * @Description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "发货单（O2O）")
public class DispatchBill extends Model<DispatchBill> {

    @ApiModelProperty(name = "id", value = "", example = "")
    private Long id;

    @ApiModelProperty(name = "companyId", value = "租户ID", example = "")
    private Long companyId;

    @ApiModelProperty(name = "platformId", value = "平台ID", example = "")
    private Long platformId;

    @ApiModelProperty(name = "storeId", value = "店铺ID", example = "")
    private Long storeId;

    @ApiModelProperty(name = "billNo", value = "发货单号", example = "")
    private String billNo;

    @ApiModelProperty(name = "storeName", value = "分店名称", example = "")
    private String storeName;

    @ApiModelProperty(name = "consignee", value = "收货人姓名", example = "")
    private String consignee;

    @ApiModelProperty(name = "consigneeTelephone", value = "收货人电话", example = "")
    private String consigneeTelephone;

    @ApiModelProperty(name = "consigneeAddress", value = "收货地址", example = "")
    private String consigneeAddress;

    @ApiModelProperty(name = "deliverer", value = "发货人", example = "")
    private String deliverer;

    @ApiModelProperty(name = "deliveryTime", value = "发货时间", example = "")
    private LocalDateTime deliveryTime;

    @ApiModelProperty(name = "actualDeliverer", value = "实际发货人", example = "")
    private String actualDeliverer;

    @ApiModelProperty(name = "quantity", value = "发货数量合计", example = "")
    private Long quantity;

    @ApiModelProperty(name = "deleted", value = "是否删除 0-已删除 1-未删除", example = "")
    private Integer deleted;

    @ApiModelProperty(name = "remark", value = "发货备注", example = "")
    private String remark;

    @ApiModelProperty(name = "status", value = "状态  0: 等待总店发货, 1: 等待分店售后 2: 分店已经收到货", example = "")
    private Integer status;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createdTime", value = "创建时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime createdTime;

    /**
     * 创建人
     */
    @ApiModelProperty(name = "createdBy", value = "创建人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String createdBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "updatedTime", value = "修改时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime updatedTime;

    /**
     * 修改人
     */
    @ApiModelProperty(name = "updatedBy", value = "修改人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String updatedBy;

}
